import {history} from 'umi';
import {Button, Result} from 'antd';

const NoFoundPage = () => {
  return (
    <Result
      status="404"
      title="404"
      subTitle="你访问的页面不存在，请联系管理员！"
      extra={(
        <Button type="primary" onClick={() => history.push('/')}>
          返回首页
        </Button>
      )}
    />
  );
};

export default NoFoundPage;